package yl.hs.bmipfull.service.equipment;

import yl.hs.bmipfull.pojo.equipment.EquipmentEntity;
import yl.hs.bmipfull.pojo.equipment.EquipmentLogEntity;
import yl.hs.bmipfull.service.IBaseService;
import yl.hs.bmipfull.viewmodels.PageQuery;
import yl.hs.bmipfull.viewmodels.PageResult;
import yl.hs.bmipfull.viewmodels.SubmitModel;

import java.util.List;
import java.util.Map;

/*
 * EquipmentService
 * @category
 * @author 谢景广
 * @date 2022-11-14
 */
public interface IEquipmentService extends IBaseService {

    PageResult<EquipmentEntity> queryPage(PageQuery query, int rowNum, int page);

    Integer saveEquipment(SubmitModel model) throws Exception;

    Integer delete(String[] snArray );

    List<EquipmentLogEntity> queryLogByDataSn(String sn, String typeCode);

    List<Map<String,Object>> queryEquipmentMRRecord(String equipmentSN);

    void checkEquipment();
    List<EquipmentEntity> queryByorderSn(String sn);
}
